package main

import "fmt"

var intA int
var intB int
var intC int
type SillyHatInt int//自定义SillyHatInt类型，实际是int类型
type SillyHatString string//自定义SillyHatString类型，实际是String类型
func constantInt()  {
	fmt.Println("constantInt------------begin")
	const limit = 512
	const top uint16 = 1421//常亮定义
	var x, y int = 1, 2//变量定义（变量定义如果没有使用则会编译失败）
	var sillyhatTypeOne SillyHatInt = 50
	var sillyhatTypeTwo SillyHatString = "sillyhat"
	var i int
	intA,intB,IntC := 1,2,3
	start := -19
	checkResults := true
	stepSize := 1.5
	acronym := "FOSS"
	fmt.Println(sillyhatTypeOne);
	fmt.Println(sillyhatTypeTwo);
	fmt.Println(i);
	fmt.Println(stepSize);
	fmt.Println(acronym);
	fmt.Println(checkResults);
	fmt.Println(start);
	fmt.Println(x);
	fmt.Println(y);
	fmt.Println(intA);
	fmt.Println(intB);
	fmt.Println(IntC);
	fmt.Println("constantInt------------end")
}

func main(){
	fmt.Println("Constant")
	constantInt()
}